import instance from "@/utils/request";

let product={
    //分页查询
    searchPage(parems){
        return instance.get(`product/findProducts`,{params:parems})

    },
    //拿到下拉框的品牌信息
    getAllBrand(){
        return instance.get(`base-brand/findAllBrand`)
    },
    //拿到下拉框的分类信息
    getAllType(){
        return instance.get(`base-type/findAllType`)
    },
    //拿到下拉框的颜色信息
    getAllColor(){
        return instance.get(`color/findColor`)
    },
    //拿到下拉框的类型信息
    getAllModel(){
        return instance.get(`product/findProduct`)
    },
}

export default product;